package com.dailycodebuffer.springbootmongodb.service;

import com.dailycodebuffer.springbootmongodb.collection.Product;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import java.util.Collection;
import java.util.List;


/**
 * 业务层
 *
 * @author makejava
 * @since 2025-01-04 00:23:42
 */
public interface ProductService {

    void save(Product product);

//    void deleteById(String id);
//
    Product findById(Integer id);
//
//    List<Product> findById(Collection<String> ids);

    Page<Product> list(Pageable page);

}

